<template>
    <div>
        <div v-html="dom"></div>
    </div>
</template>
<script>
export default {
  data: function () {
    return {
        ms:'1',
        dom: ''
    }
  },
  inject:['msg'],
  created () {
      console.log(this.msg)
      let h = this.$createElement
      this.dom = h('h1','hello')
  },
  render: function (h) {
      return h(
          this.dom
      )
  }
}
</script>